package com.tanglongan.designPattern.dp05_singleton;

public class GenericClient {

    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        System.out.println(instance.toString());
    }

    static class Singleton {
        public static final Singleton instance = new Singleton();

        private Singleton() {
        }

        public static Singleton getInstance() {
            return instance;
        }
    }
}
